package com.gsx.service;

import com.gsx.entity.Blog;
import com.gsx.entity.Blog_Type;
import com.gsx.entity.Blog_Type_User;

import java.util.List;

public interface BlogService {
    public Blog getBlog(Long id);
    //分页查询
    public List<Blog_Type> getListBlog(int page, int size,Blog_Type blog_type);

    public List<Blog>  getAllBlog(int page,int size);

    public List<Blog> getNewBlog();

    public List<Blog_Type_User> getBlog_Type_User(int page,int size);

    public List<Blog_Type_User> getByBlogTitle(int page,int size,String title);

    public Blog_Type_User getB_T_U_Front(Long id);

    public Blog_Type_User getB_T_U(Long id);

    public int saveBlog(Blog blog);

    public int updateBlog(Blog blog);

    public int deleteBlog(Long id);

    public Long[] getId();

    public String[] getYears();

    public List<Blog> getByYear(String year);

    public List<Blog_Type_User> getSelfBlog(Long user_id,int page,int size);
}
